package com.vader.boot.aware;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.support.GenericApplicationContext;

/**
 * @author Vader
 * @date 2022/5/24
 **/
@Slf4j
public class AwareApplicationContext {
    public static void main(String[] args) {
        GenericApplicationContext applicationContext = new GenericApplicationContext();
        applicationContext.registerBean("myBean",MyBean.class);
        applicationContext.refresh();
        applicationContext.close();
    }
}
